package cn.itchao.example.goods.rest;

import cn.itchao.exmaple.base.ApiResponse;
import org.springframework.cloud.alibaba.dubbo.annotation.DubboTransported;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("${member.application.name}")
@DubboTransported(protocol = "dubbo")
public interface MemberDubboRestService {

    @GetMapping(value = "/member/{id}")
    ApiResponse findMemberById(@PathVariable("id") Long id);
}
